import type { AppRouteModule } from '@/router/types'

import { LAYOUT } from '@/router/constant'
import { t } from '@/hooks/web/useI18n'

const about: AppRouteModule = {
  path: '/goods',
  name: 'Goods',
  component: LAYOUT,
  redirect: '/goods/index',
  meta: {
    orderNo: 4,
    // hideChildrenInMenu: true,
    icon: 'ant-design:file-search-outlined',
    title: t('routes.goods.goods'),
  },
  children: [
    {
      path: 'index',
      name: 'goods',
      component: () => import('@/views/goods/shipment/index.vue'),
      meta: {
        title: t('routes.goods.shipment'),
      },
      // meta: {
      //   title: t('routes.dataReport.energyStatistics'),
      //   ignoreKeepAlive: false,
      // },
    },
  ],
}

export default about
